﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MarchEstate.Manager.BusinesEntity;
using MarchEstate.Manager.Dao.Cash;

namespace MarchEstate.Manager.ObjectModel.Cash
{
    public class ItemFeeOrder : AbstractItemFeeOrder
    {
        private CashManagerDao cashDao = null;

        public ItemFeeOrder()
        {
        }

        public override void InitDao()
        {
            base.InitDao();
            cashDao = NewDao<CashManagerDao>();
        }

        public override bool Save()
        {
            if (OrderID == null)
                cashDao.AddItemFeeOrder(this);
            return true;
        }

        public override bool AlterChargeId(string _orderID, string _chargeID)
        {
            throw new NotImplementedException();
        }

        public override bool AlterPreChargeFlag(string _orderID)
        {
            throw new NotImplementedException();
        }
    }
}
